package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 护理日志对象 care_log
 * 
 * @author 王帅
 * @date 2024-11-03
 */
public class CareLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 老人编号 */
    @Excel(name = "老人编号")
    private Long residentId;

    /** 护理日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "护理日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date careDate;

    /** 护理类型（医疗、日常生活、康复） */
    @Excel(name = "护理类型", readConverterExp = "医疗、日常生活、康复")
    private String careType;

    /** 护理内容 */
    @Excel(name = "护理内容")
    private String careDetail;

    /** 护理人员编号 */
    @Excel(name = "护理人员编号")
    private Long nurseId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setResidentId(Long residentId) 
    {
        this.residentId = residentId;
    }

    public Long getResidentId() 
    {
        return residentId;
    }

    public void setCareDate(Date careDate) 
    {
        this.careDate = careDate;
    }

    public Date getCareDate() 
    {
        return careDate;
    }

    public void setCareType(String careType) 
    {
        this.careType = careType;
    }

    public String getCareType() 
    {
        return careType;
    }

    public void setCareDetail(String careDetail) 
    {
        this.careDetail = careDetail;
    }

    public String getCareDetail() 
    {
        return careDetail;
    }

    public void setNurseId(Long nurseId) 
    {
        this.nurseId = nurseId;
    }

    public Long getNurseId() 
    {
        return nurseId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("residentId", getResidentId())
            .append("careDate", getCareDate())
            .append("careType", getCareType())
            .append("careDetail", getCareDetail())
            .append("nurseId", getNurseId())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
